//
//  HomeCellTableViewCell.swift
//  ZYBWeibo
//
//  Created by xthink4 on 16/3/15.
//  Copyright © 2016年 zyb. All rights reserved.
//

import UIKit
import SDWebImage

class HomeCellTableViewCell: UITableViewCell {
    @IBOutlet weak var userHeadIcon: UIImageView!
    
    
    @IBOutlet weak var userName: UILabel!
    
    @IBOutlet weak var source: UILabel!

    @IBOutlet weak var textContent: UILabel!
    @IBOutlet weak var publictime: UILabel!
    var statuse:StatuseModel?{
        didSet{
            userName.text=statuse?.user.name
            source.text=statuse?.source
            textContent.text=statuse?.text
            publictime.text=statuse?.created_at
            userHeadIcon.sd_setImageWithURL(NSURL(string: (statuse?.user.profile_image_url)!))
            
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        userHeadIcon.layer.masksToBounds=true
        userHeadIcon.layer.cornerRadius=25
        textContent.preferredMaxLayoutWidth=UIScreen.mainScreen().bounds.width-10
        
    }

   }
